package com.txy.springcloud.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "lagou-service-code",fallback = TxyServiceCodeFallback.class,path = "/code")
public interface TxyServiceCodeFeignClient {
    @PostMapping("/validate/{email}/{code}")
    public int validate(@PathVariable("email") String email, @PathVariable("code") String code);

    @PostMapping("/create/{email}")
    public boolean create(@PathVariable("email") String email);
}
